package com.ecut.property_project.service.charge;

import com.ecut.property_project.mapper.charge.ChargeItemMapper;
import com.ecut.property_project.model.charge.ChargeItem;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ChargeItemService{

    @Resource
    private ChargeItemMapper chargeItemMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return chargeItemMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ChargeItem record) {
        return chargeItemMapper.insert(record);
    }

    
    public int insertSelective(ChargeItem record) {
        return chargeItemMapper.insertSelective(record);
    }

    public List<ChargeItem> selectAll(){ return chargeItemMapper.selectAll(); }

    public List<ChargeItem> selectByPage(Integer page, Integer pageSize){return chargeItemMapper.selectByPage(page,pageSize);}

    public ChargeItem selectByPrimaryKey(Integer id) {
        return chargeItemMapper.selectByPrimaryKey(id);
    }
    public List<ChargeItem> selectByHeadId(String headId){
        return chargeItemMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(ChargeItem record) {
        return chargeItemMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ChargeItem record) {
        return chargeItemMapper.updateByPrimaryKey(record);
    }

}
